﻿using Polaris.Domain.Model.Dto.Sys_User.Request;
using Polaris.Domain.Model.Dto.Sys_User.Response;
using Polaris.Domain.Model.Entity.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Interfaces.Admin
{
    public interface ISys_User
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="login"></param>
        /// <returns></returns>
        Task<TokenUserInfoResponse> Login(LoginRequest login);

        /// <summary>
        /// 创建用户
        /// </summary>
        /// <param name="create"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task CreateUser(CreateUserInfoRequest create, Guid? userId);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="id"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task DeleteUserById(string id, Guid? userId);

        /// <summary>
        /// 根据id获取用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UpdateUserInfoRequest> GetUserById(string id);

        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="update"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task UpdateUser(UpdateUserInfoRequest update,Guid? userId);

        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<PaginationInfo<UserInfoResponse>> GetUserList(UserInfoQueryRequest query);
    }
}
